<?php

class Team extends BaseEntity
{
	
	public function isInDraft($draftID)
	{
		return $this->draftID == $draftID;
	}
	
	public function asTableRow()
	{
		$t = "<tr class='team' name = '".$this->name."' id ='".$this->id."'>";
			$t = $t."<td>".$this->name."</td>";
		$t = $t."</tr>";
		return $t;
	}
	
	public function asOrderRow($strong)
	{
		if ($strong)
		{
			$t = "<tr><td><strong>".$this->name."</strong></td><td><strong>".$this->draftOrder."</strong></td></tr>";
		}
		else
		{
			$t = "<tr><td>".$this->name."</td><td>".$this->draftOrder."</td></tr>";
		}
		return $t;
	}
	
	public function equals($team)
	{
		return $this->id == $team->id;
	}
	
	public function __toString()
	{
		return $this->name;
	}
}

?>